<?php 
namespace app\index\validate;
use think\Validate;
class Owner extends Validate{
	protected $regex = [
		// 'zname' => '\w{2,6}',
	];

	protected $rule = [
		// 'uname'=>'require|regex:zname',
		'city'=>'require',
		'area'=>'require',
		'vill'=>'require|length:3,8',
		'addr'=>'require|length:3,20',
	];

	protected $message = [
		//'uname.require'=>'姓名不能为空',
		'city.require'=>'请选择城市',
		'area.require'=>'请选择区/县',
		'vill.require'=>'请填写小区',
		'vill.length'=>'小区格式错误',
		'addr.require'=>'请填写房屋地址',
		'addr.length'=>'地址格式错误',
	];

	protected $scene = [
		// 'add'=>'uname.email,pwd',
		
	];
}

 ?>